package demo1;

abstract class Triangle extends Shape{
    private double width;
    private double length;
    public Triangle(double width,double length){
        super(width*length);
        this.width=width;
        this.length=length;
    }

/*    @Override
    public void draw() {
        System.out.println("draw a Triangle!!!!!!!!!!!!");
    }*/

    @Override
    public double calSize() {
        return width*length;
    }
}
